<?php
header('Content-Type:text/html;charset=utf-8');
require('../public/zscg.php');
require('../public/local.php');
$ctime=time();
$uid=$_POST['uid'];
$fid=$_POST['fid'];
$title=$_POST['name'];
$content=$_POST['editorValue'];
$biaoqian=$_POST['biaoqian'];
$arr=array('uid'=>$uid,'fid'=>$fid,'title'=>$title,'ctime'=>$ctime,'content'=>$content,'biaoqian'=>$biaoqian);
$res=insert($con,'wenzhang',$arr);
if($res){
    echo "<script>alert('上传成功');window.location.href='/home/contact.php'</script>";
}else{
    echo "<script>alert('上传失败');window.location.href='/home/contact.php'</script>";
}